<?php if ($this->hasBlog): ?>
    <h3>Create Blog</h3>
    <p class="error">Blog allready created</p>
<?php else: ?>
    <h3>Create Blog</h3>
    <?php if ($this->isInvalid): ?>
        <p class="error">Invalid form</p>
    <?php endif; ?>
    <?php echo $this->blogForm ?>
<?php endif; ?>